package com.situ.mybatis.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class Student {
    private Integer id;
    private String name;//name  stuName
    private Integer age;
    private String gender;
    private Integer banjiId;//banji_id
    //一个学生和banji是一对一关系
    private Banji banji;

    /*public Student(String name, Integer age, String gender, Integer banjiId) {
        this.name = name;
        this.age = age;
        this.gender = gender;
        this.banjiId = banjiId;
    }*/
}
